<extend name='Public/demo' />

<block name='contents'>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme/assets/bootstrap-datepicker/css/datepicker.css" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme/assets/bootstrap-colorpicker/css/colorpicker.css" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme/assets/bootstrap-daterangepicker/daterangepicker.css" />

	<script src="__PUBLIC__/Admin/User/city/jquery-1.11.3.min.js"></script>
	<script src="__PUBLIC__/Admin/User/city/Popt.js"></script>
	<script src="__PUBLIC__/Admin/User/city/cityJson.js"></script>
	<script src="__PUBLIC__/Admin/User/city/citySet.js"></script>

	<style type="text/css">
	._citys { width: 450px; display: inline-block; border: 2px solid #eee; padding: 5px; position: relative; }
	._citys span { color: #56b4f8; height: 15px; width: 15px; line-height: 15px; text-align: center; border-radius: 3px; position: absolute; right: 10px; top: 10px; border: 1px solid #56b4f8; cursor: pointer; }
	._citys0 { width: 100%; height: 34px; display: inline-block; border-bottom: 2px solid #56b4f8; padding: 0; margin: 0; }
	._citys0 li { display: inline-block; line-height: 34px; font-size: 15px; color: #888; width: 80px; text-align: center; cursor: pointer; }
	.citySel { background-color: #56b4f8; color: #fff !important; }
	._citys1 { width: 100%; display: inline-block; padding: 10px 0; }
	._citys1 a { width: 83px; height: 35px; display: inline-block; background-color: #f5f5f5; color: #666; margin-left: 6px; margin-top: 3px; line-height: 35px; text-align: center; cursor: pointer; font-size: 13px; overflow: hidden; }
	._citys1 a:hover { color: #fff; background-color: #56b4f8; }
	.AreaS { background-color: #56b4f8 !important; color: #fff !important; }
	</style>

	<div class="row">
		<aside class="profile-info col-lg-offset-1 col-lg-10">
			<section class="panel">
				<header class="panel-heading">编辑用户资料</header>
				<div class="panel-body">
					<div class="form">
						<form class="cmxform form-horizontal tasi-form"  method="post" action="{:U('editdo')}" novalidate="novalidate" enctype="multipart/form-data">

							<img src="__PUBLIC__{$res[0]['photo']}"  height="60px" class="pull-left" style="margin-right:100px;" data-src="holder.js/60x60/auto/vine" width="60px" >
							<div class="form-group pull-left" >
								<label >更改头像</label>
								<input type="file" id="exampleInputFile" name="photo">
							</div>

							<div class="clearfix"></div>

							<div class="form-group ">
								<label  class="control-label col-lg-2">用户名</label>
								<div class="col-lg-10">
									<input class=" form-control"  name="username" type="text" value="{$res[0]['username']}"></div>
							</div>
							<div class="form-group ">
								<label for="firstname" class="control-label col-lg-2">昵称</label>
								<div class="col-lg-10" >
									<input class=" form-control"  name="nickname" type="text" value="{$res[0]['nickname']}"></div>
							</div>
				
							<div class="form-group ">
								<label class="control-label col-lg-2" >标签</label>
								<div class="col-lg-10">
									<input name="tag" id="tagsinput" class="tagsinput" value="{$res[0]['tag']}" />
								</div>
							</div>

							<div class="form-group ">
								<label class="control-label col-lg-2" for="inputSuccess">性别</label>
								<div class="col-lg-3">
									<label class="checkbox-inline" style="margin-left:-20px">
										<input type="radio" id="inlineRadio1" value="0" name="sex" {$res[0]['sex']==1?'checked':''}>男</label>
									<label class="checkbox-inline">
										<input type="radio" id="inlineRadio2" value="1" name="sex" {$res[0]['sex']==0?'checked':''}>女</label>
									<label class="checkbox-inline">
										<input type="radio" id="inlineRadio2" value="1" name="sex" {$res[0]['sex']==2?'checked':''}>保密</label>
								</div>
							</div>

							<div class="form-group ">
								<label class="control-label col-lg-2" for="inputSuccess">账户状态</label>
								<div class="col-lg-3">
									<label class="checkbox-inline" style="margin-left:-20px">
										<input type="radio" id="inlineRadio1" value="0" name="lock" {$res[0]['lock']==0?'checked':''}>封号</label>
									<label class="checkbox-inline">
										<input type="radio" id="inlineRadio2" value="1" name="lock" {$res[0]['lock']==1?'checked':''}>活跃</label>
								</div>
							</div>

				<!-- 			<div class="form-group ">
								<label class="control-label col-lg-2" >邮箱验证状态</label>
								<div class="col-lg-3" style="margin-left:-20px">
									<label class="checkbox-inline" >
										<input type="radio" id="inlineCheckbox1" value="1" name="email_state" {$res[0]['email_state']==1?'checked':''}>已验证</label>
									<label class="checkbox-inline">
										<input type="radio" id="inlineCheckbox2" value="0" name="email_state" {$res[0]['email_state']==0?'checked':''}>待验证</label>
								</div>
							</div> -->
							<div class="form-group ">
								<label class="control-label col-lg-2" >重置密码</label>
								<div class="col-lg-3" style="margin-left:-20px">
									<label class="checkbox-inline" >
										<input type="radio" id="inlineCheckbox1" value="1" name="repass" >重置</label>
									<label class="checkbox-inline">
										<input type="radio" id="inlineCheckbox2" value="0" name="repass" checked>不重置</label>
								</div>
							</div>

							<div class="form-group ">
								<label for="lastname" class="control-label col-lg-2">地址</label>
								<div class="col-lg-10">
									<input type="text" name="area" value="{$res[0]['area']}" id="city" />

									<script type="text/javascript">
										$("#city").click(function (e) {
											SelCity(this,e);
										});
									</script>
								</div>
							</div>

							<div class="form-group ">
								<label for="username" class="control-label col-lg-2">出生日期</label>
								<div class="col-lg-10">
									<input id="dp1" type="text" value="{$res[0]['birthday']}" size="16" class="form-control" name="birthday">
								</div>
							</div>

						<div class="form-group ">
							<label for="password" class="control-label col-lg-2">个性签名</label>
							<div class="col-lg-10">
								<input class="form-control "  name="signature" type="text" value="{$res[0]['signature']}">
							</div>
						</div>

						<div class="form-group">
							<div class="col-lg-offset-2 col-lg-10">
								<button class="btn btn-danger" type="submit">保存</button>
								<button class="btn btn-default" type="button">取消</button>
							</div>
						</div>

						<input type="hidden" name="user_id" value="{$Think.get.id}"></form>
					</div>
				</div>
			</section>
		</aside>
	</div>

	<!--custom switch-->
	<script src="__PUBLIC__/Theme/js/bootstrap-switch.js"></script>
	<!--custom tagsinput-->
	<script src="__PUBLIC__/Theme/js/jquery.tagsinput.js"></script>
	<!--custom checkbox & radio-->
	<script type="text/javascript" src="__PUBLIC__/Theme/js/ga.js"></script>

	<script type="text/javascript" src="__PUBLIC__/Theme/assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Theme/assets/bootstrap-daterangepicker/date.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Theme/assets/bootstrap-daterangepicker/daterangepicker.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Theme/assets/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Theme/assets/ckeditor/ckeditor.js"></script>

	<!--script for this page-->
	<script src="__PUBLIC__/Theme/js/form-component.js"></script>

</block>